<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>发布动态</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* 移动端滚动条优化 - 隐藏滚动条 */
        ::-webkit-scrollbar {
            display: none;
        }
        
        * {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #f5f7fa;
            padding-bottom: 80px;
            padding-top: 50px;
        }
        
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: #3498DB;
            color: white;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 100;
        }
        
        .header-left {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }
        
        .back-btn {
            background: none;
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
        }
        
        .header-title {
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            flex: 1;
        }
        
        .publish-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: 1px solid rgba(255,255,255,0.3);
            border-radius: 16px;
            padding: 6px 16px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .publish-btn:hover {
            background: rgba(255,255,255,0.3);
        }
        
        /* 小程序胶囊按钮 */
        .capsule-btn {
            background: rgba(255,255,255,0.2);
            border-radius: 16px;
            padding: 6px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-left: 8px;
        }
        
        .capsule-btn .dot {
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
        }
        
        .content {
            padding: 15px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            background: white;
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(45deg, #3498DB, #2ECC71);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            font-weight: 600;
        }
        
        .user-details {
            flex: 1;
        }
        
        .user-name {
            font-size: 14px;
            font-weight: 600;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .user-badge {
            background: #e74c3c;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 8px;
        }
        
        .publish-time {
            font-size: 12px;
            color: #7f8c8d;
        }
        
        .text-editor {
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .text-input {
            width: 100%;
            min-height: 120px;
            padding: 15px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            line-height: 1.5;
            color: #2c3e50;
            resize: none;
            outline: none;
            font-family: inherit;
        }
        
        .text-input::placeholder {
            color: #bdc3c7;
        }
        
        .char-count {
            padding: 0 15px 15px;
            text-align: right;
            font-size: 12px;
            color: #7f8c8d;
        }
        
        .media-section {
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .section-title {
            font-size: 14px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .media-upload {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        
        .upload-item {
            aspect-ratio: 1;
            border: 2px dashed #bdc3c7;
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: border-color 0.2s ease;
            background: #f8f9fa;
        }
        
        .upload-item:hover {
            border-color: #3498DB;
        }
        
        .upload-icon {
            font-size: 24px;
            color: #bdc3c7;
            margin-bottom: 4px;
        }
        
        .upload-text {
            font-size: 12px;
            color: #7f8c8d;
        }
        
        .uploaded-media {
            position: relative;
            aspect-ratio: 1;
            background: linear-gradient(45deg, #ecf0f1, #bdc3c7);
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #7f8c8d;
            font-size: 10px;
            text-align: center;
        }
        
        .media-remove {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 20px;
            height: 20px;
            background: rgba(0,0,0,0.6);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .location-section {
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .location-selector {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            padding: 12px;
            border: 1px solid #e8e8e8;
            border-radius: 8px;
            transition: border-color 0.2s ease;
        }
        
        .location-selector:hover {
            border-color: #3498DB;
        }
        
        .location-icon {
            color: #3498DB;
            font-size: 16px;
        }
        
        .location-text {
            flex: 1;
            font-size: 14px;
            color: #2c3e50;
        }
        
        .location-placeholder {
            color: #bdc3c7;
        }
        
        .location-arrow {
            color: #bdc3c7;
            font-size: 12px;
        }
        
        .tags-section {
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .tag-input-container {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .tag-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #e8e8e8;
            border-radius: 20px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s ease;
        }
        
        .tag-input:focus {
            border-color: #3498DB;
        }
        
        .add-tag-btn {
            background: #3498DB;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 12px;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        
        .add-tag-btn:hover {
            background: #2980B9;
        }
        
        .tags-list {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .tag-item {
            background: #ecf0f1;
            color: #3498DB;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .tag-remove {
            background: none;
            border: none;
            color: #7f8c8d;
            font-size: 10px;
            cursor: pointer;
            padding: 0;
            width: 12px;
            height: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .popular-tags {
            margin-top: 12px;
        }
        
        .popular-tags-title {
            font-size: 12px;
            color: #7f8c8d;
            margin-bottom: 8px;
        }
        
        .popular-tag {
            background: #f8f9fa;
            color: #7f8c8d;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .popular-tag:hover {
            background: #3498DB;
            color: white;
        }
        
        .privacy-section {
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .privacy-options {
            display: flex;
            gap: 12px;
        }
        
        .privacy-option {
            flex: 1;
            padding: 12px;
            border: 1px solid #e8e8e8;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .privacy-option.selected {
            border-color: #3498DB;
            background: rgba(52, 152, 219, 0.1);
            color: #3498DB;
        }
        
        .privacy-icon {
            font-size: 16px;
            margin-bottom: 4px;
        }
        
        .privacy-text {
            font-size: 12px;
        }
        
        .bottom-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e8e8e8;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .draft-btn {
            background: #f8f9fa;
            color: #7f8c8d;
            border: 1px solid #e8e8e8;
            border-radius: 20px;
            padding: 10px 20px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .draft-btn:hover {
            background: #ecf0f1;
        }
        
        .publish-btn-bottom {
            background: #3498DB;
            color: white;
            border: none;
            border-radius: 20px;
            padding: 10px 30px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        
        .publish-btn-bottom:hover {
            background: #2980B9;
        }
        
        .publish-btn-bottom:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="header-left">
            <div class="back-btn">←</div>
            <div class="header-title">发布动态</div>
        </div>
        <button class="publish-btn">发布</button>
        <div class="capsule-btn">
            <div class="dot"></div>
            <div class="dot"></div>
            <div class="dot"></div>
        </div>
    </div>
    
    <div class="content">
        <div class="user-info">
            <div class="user-avatar">钓</div>
            <div class="user-details">
                <div class="user-name">
                    钓鱼达人
                    <span class="user-badge">VIP</span>
                </div>
                <div class="publish-time">即将发布</div>
            </div>
        </div>
        
        <div class="text-editor">
            <textarea class="text-input" placeholder="分享你的钓鱼心得、今日收获或者有趣的钓鱼故事..."></textarea>
            <div class="char-count">0/2000</div>
        </div>
        
        <div class="media-section">
            <div class="section-title">
                <span>📷</span>
                <span>添加图片/视频</span>
            </div>
            <div class="media-upload">
                <div class="upload-item">
                    <div class="upload-icon">📷</div>
                    <div class="upload-text">添加图片</div>
                </div>
                <div class="upload-item">
                    <div class="upload-icon">🎥</div>
                    <div class="upload-text">添加视频</div>
                </div>
                <div class="uploaded-media">
                    [已上传图片]
                    <button class="media-remove">×</button>
                </div>
            </div>
        </div>
        
        <div class="location-section">
            <div class="section-title">
                <span>📍</span>
                <span>添加位置</span>
            </div>
            <div class="location-selector">
                <div class="location-icon">📍</div>
                <div class="location-text location-placeholder">选择钓场位置</div>
                <div class="location-arrow">></div>
            </div>
        </div>
        
        <div class="tags-section">
            <div class="section-title">
                <span>#</span>
                <span>添加话题</span>
            </div>
            <div class="tag-input-container">
                <input type="text" class="tag-input" placeholder="输入话题标签">
                <button class="add-tag-btn">添加</button>
            </div>
            <div class="tags-list">
                <div class="tag-item">
                    #钓鱼技巧
                    <button class="tag-remove">×</button>
                </div>
                <div class="tag-item">
                    #青山湖钓场
                    <button class="tag-remove">×</button>
                </div>
            </div>
            <div class="popular-tags">
                <div class="popular-tags-title">热门话题</div>
                <div class="tags-list">
                    <div class="popular-tag">#春季钓鱼</div>
                    <div class="popular-tag">#鲫鱼</div>
                    <div class="popular-tag">#野战蓝鲫</div>
                    <div class="popular-tag">#钓鱼装备</div>
                    <div class="popular-tag">#新手指南</div>
                </div>
            </div>
        </div>
        
        <div class="privacy-section">
            <div class="section-title">
                <span>🔒</span>
                <span>隐私设置</span>
            </div>
            <div class="privacy-options">
                <div class="privacy-option selected">
                    <div class="privacy-icon">🌍</div>
                    <div class="privacy-text">公开</div>
                </div>
                <div class="privacy-option">
                    <div class="privacy-icon">👥</div>
                    <div class="privacy-text">好友可见</div>
                </div>
                <div class="privacy-option">
                    <div class="privacy-icon">🔒</div>
                    <div class="privacy-text">仅自己</div>
                </div>
            </div>
        </div>
    </div>
    
    <div class="bottom-bar">
        <button class="draft-btn">保存草稿</button>
        <button class="publish-btn-bottom">发布动态</button>
    </div>
</body>
</html> 